package models

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	OrderID     string `gorm:"column:order_id" json:"order_id"`
	ProductName string `gorm:"column:product_name" json:"product_name"`
	BuyNum      int    `gorm:"column:buy_num" json:"buy_num"`
	Status      uint   `gorm:"column:status" json:"status"`
}

func (table *Order) TableName() string {
	return "order"
}
